/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.command;

/**
 * 遥控器对象
 * 
 * @author aeky
 */
public class SimpleRemoteControl {

    /** 命令对象 */
    private Command slot;

    public void setCommand(Command command) {
        this.slot = command;
    }

    /**
     * 遥控器按钮按下时
     */
    public void buttonPressed() {
        slot.execute();
    }

}
